package com.edu.service;

import com.edu.CService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MainServiceImpl {
    /**
     * Aservice类型在mini springboot框架自带的starter里
     */
    @Autowired
    private AService aService;

    /**
     * CService在第三方starter里
     */
    @Autowired
    private CService cService;
    public void bmethod(){

        System.out.println("b method---");
        aService.amethod();
        cService.cmethod();
    }

}
